package com.sihai.ehr.web.pojo;

import com.sihai.ehr.model.biz.Duty;

/**
 * User: Wang.Yi
 * Date: 2012-10-11
 * Time: 19:37:26
 */
public class ExamItemSetPojo {

    private Duty duty;
    private Long id;
    private Float pState;       //考核指标设定状态
    private Integer itemCount;//  考核项目数量

    public Duty getDuty() {
        return duty;
    }

    public ExamItemSetPojo(Duty duty, Long id, Float pState, Integer itemCount) {
        this.duty = duty;
        this.id = id;
        this.pState = pState;
        this.itemCount = itemCount;
    }

    public void setDuty(Duty duty) {
        this.duty = duty;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Float getpState() {
        return pState;
    }

    public void setpState(Float pState) {
        this.pState = pState;
    }

    public Integer getItemCount() {
        return itemCount;
    }

    public void setItemCount(Integer itemCount) {
        this.itemCount = itemCount;
    }

    public float getState(){
        return pState == null ? 0 : pState.floatValue();
    }
}
